# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-anytree
_pkgname=anytree
pkgver=2.8.0
pkgrel=2
pkgdesc="Simple, lightweight and extensible Tree data structure"
url="https://github.com/c0fec0de/anytree"
arch="noarch"
license="Apache-2.0"
depends="py3-six"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/c0fec0de/anytree/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm "$pkgdir"/usr/LICENSE
}

sha512sums="73ad57960c25d9fd31b001a5ff2f0e67c4d45db00ff2f9aec090c7a3c4028630b0242f5ae18e58a8374f4aacb4f0bad24ce61cc97fc573aaca623a0b64a85894  py3-anytree-2.8.0.tar.gz"
